import http from '@/util/request/index'

export const code = (data) => {
  return http({
    url: 'frontend/user/getCode',
    auth: false,
    method: 'get',
    data: {
      app_id: data.appid,
      channel: data.channel,
    },
  })
}

export const userLogin = (data) => {
  return http({
    url: 'frontend/user/login',
    auth: false,
    method: 'post',
    data,
  })
}

export const uploadUserinfo = (data) => {
  return http({
    url: 'frontend/user/userInfo',
    auth: false,
    method: 'post',
    data,
  })
}
